<template>
  <div class="back_btn" @click="back">
    <van-icon name="arrow-left" />
  </div>
</template>

<script>
export default {
  created(){
    console.log(this.$store.state.upPage);
  },
  methods:{
    back(){
      this.$router.push(this.$store.state.upPage)
    }
  }
};
</script>

<style lang="less" scoped>
.back_btn {
  position: fixed;
  left: 20px;
  top: 20px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  text-align: center;
  z-index: 9999;
  /deep/.van-icon {
    color: #fff;
    font-size: 16px;
    display: block;
    line-height: 40px;
  }
}
</style>